/*    */ package irdc.ex03_15;
/*    */ 
/*    */ import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.inputmethodservice.Keyboard;
import android.inputmethodservice.KeyboardView;
import android.util.AttributeSet;
import android.view.inputmethod.InputMethodSubtype;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @SuppressLint({"NewApi"})
/*    */ @TargetApi(11)
/*    */ public class LatinKeyboardView extends KeyboardView
/*    */ {
/*    */   private static int C = -100;
/*    */ 
/*    */   public LatinKeyboardView(Context context, AttributeSet attrs)
/*    */   {
/* 35 */     super(context, attrs);
/*    */   }
/*    */ 
/*    */   public LatinKeyboardView(Context context, AttributeSet attrs, int defStyle) {
/* 39 */     super(context, attrs, defStyle);
/*    */   }
/*    */ 
/*    */   protected boolean onLongPress(Keyboard.Key key)
/*    */   {
/* 44 */     if (key.codes[0] == -3) {
/* 45 */       getOnKeyboardActionListener().onKey(-100, null);
/* 46 */       return true;
/*    */     }
/* 48 */     return super.onLongPress(key);
/*    */   }
/*    */ 
/*    */   @TargetApi(11)
/*    */   void This(InputMethodSubtype subtype)
/*    */   {
/* 54 */     LatinKeyboard keyboard = (LatinKeyboard)getKeyboard();
/* 55 */     keyboard.This(getResources().getDrawable(subtype.getIconResId()));
/* 56 */     invalidateAllKeys();
/*    */   }
/*    */ }

/* Location:           I:\myapk\TelLib\
 * Qualified Name:     irdc.ex03_15.LatinKeyboardView
 * JD-Core Version:    0.5.4
 */